﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace medicine.BaseComponents.Groups
{
    public partial class DragSourcePanel : Panel ,IDragSource 
    {
        public DragSourcePanel()
        {
            InitializeComponent();
        }

        //protected override void OnPaint(PaintEventArgs pe)
        //{
        //    base.OnPaint(pe);
        //}

        #region IDragSource Members
        public event DraggingHandler Dragging;

        public event DropTestHandler DropTest;

        public void DragCompleted(Control Sender)
        {
            ((SelectedGroup)this.Parent).DragCompleted(Sender);
            //this.Controls.Clear();
        }

        #endregion



  
    }
}
